// c:\Users\25977\Desktop\新建文件夹 (2)\TayenOrbit\components\customer-popup\customer-popup.js
import http from '../../common/request'

Component({
  data: {
    customerShow: false,
    maskShow: false,
    src: "",


  },
  created() {
    this.contactsQrcode()
  },
  properties: {

  },
  methods: {
    async contactsQrcode() {
      await http.request({
        url: '/home/contactsQrcode',
        method: 'GET',
      }).then(({ data }) => {
        console.log(data.url, 1111)
        this.setData({
          customerShow: data.url ? true : false
        })
        this.setData({
          src: data.url
        })
      }).catch((err) => {
        console.log('请求失败', err)
        tt.showLoading({
          title: err.msg
        })
      })
    },
    showMask() {
      this.setData({
        maskShow: true
      })
    },
    hiddenMask() {
      this.setData({
        maskShow: false
      })

    }
  }

})